{include file="public/header"/}
<link rel="stylesheet" href="/static/ztree/css/demo.css" type="text/css">
<body>
<div class="x-body">
    <form action="" method="post" attr-url="{:url('authority_group/authority_group_edit')}" class="layui-form layui-form-pane">
        <div class="layui-form-item">
            <label for="name" class="layui-form-label">
                <span class="x-red">*</span>套餐名称
            </label>
            <div class="layui-input-inline">
                <input type="text" id="name" name="name" required="" lay-verify="required"
                       autocomplete="off" class="layui-input" value="{$group->name}">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <div class="content_wrap">
                <div class="zTreeDemoBackground left">
                    <ul id="treeDemo" class="ztree"></ul>
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label for="desc" class="layui-form-label">
                描述
            </label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" id="desc" name="desc" class="layui-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <input type="hidden" name="id" value="{$group->id}">
                <button class="layui-btn" type="submit" lay-submit lay-filter="formDemo">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
<script>
    ztree_url = "{:url('menu/tree_data',['id'=>$group->id])}";
</script>
<script src="/static/admin/js/common.js"></script>
<script src="/static/admin/js/ztree.js"></script>
</body>
</html>